/*
 * HTMLArbre.h
 *
 *  Created on: 19 mars 2012
 *      Author: lsinapayen
 */

#ifndef HTMLARBRE_H_
#define HTMLARBRE_H_
#include "XMLArbre.h"
#include "ContentElement.h"
#include "EmptyElement.h"
#include "Data.h"
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;

//TODO <root>
class HTMLArbre : public XMLArbre {
public:
	HTMLArbre(XMLArbre * xsl, XMLArbre * xml);
	virtual ~HTMLArbre();

protected:
	void parcoursItem(Item * i);
	void applyTemplate(Element * e, ContentElement * temp,  vector<Item*> * item);
	pair <bool,ContentElement *> findTemplate(string * nom);
	pair<bool,vector<Item*>* > IsValueof(EmptyElement * ee, ContentElement * e, vector<Item*>* items);
};

#endif /* HTMLARBRE_H_ */
